import 'package:finance_app/src/entities/biometrics_data_entity.dart';

biometricsDataEntityFromJson(BiometricsDataEntity data, Map<String, dynamic> json) {
	if (json['countryCode'] != null) {
		data.countryCode = json['countryCode'].toString();
	}
	if (json['account'] != null) {
		data.account = json['account'].toString();
	}
	if (json['password'] != null) {
		data.password = json['password'].toString();
	}
	return data;
}

Map<String, dynamic> biometricsDataEntityToJson(BiometricsDataEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['countryCode'] = entity.countryCode;
	data['account'] = entity.account;
	data['password'] = entity.password;
	return data;
}